<!doctype html>
<html>

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
	<meta name="format-detection" content="telephone=no" />
	<title>首页</title>
	<link rel="stylesheet" type="text/css" href="../c/aui.css" />
	<style>
		.t{
			margin: 2rem auto;
			text-align: center;
			width: 14rem;
		}
		.t p{
			padding: 0.75rem;
			font-size: 0.75rem;
		}
		#input{
			color: #fff;
			border:1px solid #999;
			margin: 0 auto;
			border-radius: 1rem;
			font-size: 0.75rem;
			text-align: center;
		}
		.sx-btn{
			background: #FE2C55;
			border-radius: 1rem;
			padding: 0.45rem 0;
			margin-top: 0.75rem;
			font-size: 0.75rem;
		}
		.b {
			text-align: center;
			margin-top: 1rem;
			padding-top: 1rem;
			border-top: 5px solid #222;
			margin-bottom: 2rem;
		}
		.b img{
			width: 5rem;
			margin: 0 auto;
		}
		.b h2{
			font-size: 0.85rem;
			margin-bottom: 1rem;
			color: #eba825;
			margin-top: 0.5rem;
		}
		.b p{
			font-size: 0.65rem;
			text-align: left;
			width: 80%;
			margin: 0 auto;
			padding: 0.15rem 0;
		}
		.b p span{
			color: #eba825;
		}
		.b .sx-btn{
			background: #eba825;
			width: 80%;
			margin: 0 auto;
			margin-top: 1rem;
		}
	</style>
</head>

<body>
	<div class="aui-content">
		<div class="t">
			<p>填写好友邀请码，立得500金币</p>
			<input id="input" type="text" placeholder="输入邀请（向介绍人获取）" />
			<div class="sx-btn" tapmode onclick="add()">提交邀请码</div>
		</div>
		<div class="b">
			<img src="../i/jinbi/yqm.png" />
			<h2>邀请好友去赚大钱</h2>
			<p>您的好友邀请成功，您还可以<span>永久额外获得金币奖励</span></p>
			<p>您的好友获得奖励时，您可获得好友永久<span>3%金币</span></p>
			<p>您的好友还可以为您<span>永久源源不断赚钱</span></p>
			<div class="sx-btn" tapmode onclick="_url({url:'member_yaoqing',title:'邀请好友'})">邀请好友去赚大钱</div>
		</div>
	</div>
</body>
<script type="text/javascript" src="../j/api.js"></script>
<script type="text/javascript">
	apiready = function() {
		setTimeout(function() {
			document.getElementById("input").focus()
		}, 500)
		api.parseTapmode();
	}
	function add(){
		var yqm = $('#input').val();
		if(!yqm){
			return _msg('请输入邀请码');
		}
		_loading();
		_ajax('renwu/yaoqing_yqm',function(ret,err){
			_loadingCloes();
			if(ret){
				if(ret.ret){
					document.activeElement.blur();
					_alert(ret.ret,function(ret,err){
						_close();
					})
				}else{
					_msg(ret.err);
				}
			}else{

			}
		},{yqm:yqm})
	}


</script>

</html>
